package com.moyoutian.daogenerate.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(schema = "information_schema", name = "tables")
@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler","fieldHandler"})
public class TableEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @EmbeddedId
    private TableId tableId;

    @Column
    private String engine;
    @Column
    private Long version;
    @Column
    private String rowFormat;
    @Column
    private Long tableRows;
    @Column
    private Long avgRowLength;
    @Column
    private Long dataLength;
    @Column
    private Long maxDataLength;
    @Column
    private Long indexLength;
    @Column
    private Long dataFree;
    @Column
    private Long autoIncrement;
    @Column
    private Date createTime;
    @Column
    private Date updateTime;
    @Column
    private Date checkTime;
    @Column
    private String tableCollation;
    @Column
    private Long checksum;
    @Column
    private String createOptions;
    @Column
    private String tableComment;
}
